#include "startserverdialogimpl.h"
#include <QFileDialog>
//
StartServerDialogImpl::StartServerDialogImpl( QWidget * parent, Qt::WFlags f) 
	: QDialog(parent, f)
{
	setupUi(this);
        connect(this->openLevelButton, SIGNAL(clicked()), this, SLOT(setLevel()) );
}
//

void StartServerDialogImpl::setLevel()
{
    this->levelLineEdit->setText(QFileDialog::getOpenFileName(this,
                                                              "Load Level",
                                                              QDir::homePath(),
                                                              "CTA Level (*.ctalevel)") );

}
